package com.sdp.th.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 配电室信息
 * </p>
 *
 * @author zsp
 * @since 2025-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("th_room")
public class ThRoom extends Model<ThRoom> {

    private static final long serialVersionUID=1L;

    /**
     *  内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 编码
     */
    @TableField("room_no")
    private String roomNo;

    /**
     * 名称
     */
    @TableField("room_name")
    private String roomName;

    /**
     * 所属区域
     */
    @TableField("region_no")
    private String regionNo;

    /**
     * 备注
     */
    @TableField("room_desc")
    private String roomDesc;

    /**
     * 序号
     */
    @TableField("room_order")
    private Integer roomOrder;
    
    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
